package com.wfuhui.modules.oms.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.wfuhui.modules.oms.entity.UserEntity;
import com.wfuhui.modules.sys.dao.BaseDao;

/**
 * 会员
 *
 */
@Mapper
public interface UserDao extends BaseDao<UserEntity> {

	UserEntity queryByOpenid(String openid);

	void addBalance(@Param("userId")Long userId, @Param("amount")Integer amount);

	UserEntity queryByLoginName(String loginName);
}
